<template>
  <div>
    <Layout :title="'商品详情'" :flag="true" :tabBarShow="false">
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item><img :src="require('../../../../../杂物/小鸟游六花.jpg')" class="images"></van-swipe-item>
        <van-swipe-item><img :src="require('../../../../../杂物/Niko.gif')" class="images"></van-swipe-item>
        <van-swipe-item><img :src="require('../../../../../杂物/02.gif')" class="images"></van-swipe-item>
        <van-swipe-item><img :src="require('../../../../../杂物/fortnite/纪念.png')" class="images"></van-swipe-item>
      </van-swipe>

      <!-- 价格 -->
      <div class="comPrice">
        <div class="top">
          <van-tag type="success">促销</van-tag>
          <div class="name">
            name
          </div>
        </div>
        <div class="bottom">
          <div class="lt">
            <div class="one">
              ￥169
            </div>
            <div class="two">
              ￥220
            </div>
          </div>
          <div class="rt">
            买够200元包邮
          </div>
        </div>
      </div>

      <div class="params">
        <div class="lt">规格</div>
        <div class="rt">
          <span style="color:#c7c7cc;">标准</span>
          <van-icon name="arrow" color="#c7c7cc" />
        </div>
      </div>
      <div class="myTab"></div>
      <van-tabs v-model="active">
        <van-tab title="详情">详情</van-tab>
        <van-tab title="评价">评价</van-tab>
        <van-tab title="售后">售后</van-tab>
      </van-tabs>
      <van-goods-action>
        <van-goods-action-icon icon="chat-o" text="客服" color="#ee0a24" />
        <van-goods-action-icon icon="star" text="已收藏" color="#ff5000" />
        <van-goods-action-button type="warning" text="加入购物车" />
        <van-goods-action-button type="danger" text="立即购买" />
      </van-goods-action>
    </Layout>
  </div>
</template>

<script>
export default {
  // 定义属性
  data() {
    return {
      active: 0
    }
  },
  // 方法集合
  methods: {}
}
</script>

<style lang='less' scoped>
.images {
  width: 100%;
  height: 100%;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 540px;
  text-align: center;
  background-color: #39a9ed;
  height: 540px;
}
.comPrice {
  padding: 0 30px;
  height: 130px;
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
  .top {
    display: flex;
    align-items: center;
    padding: 10px 0 5px 0;
    .name {
      font-size: 30px;
      margin-left: 20px;
    }
  }
  .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .lt {
      display: flex;
      align-items: center;
      .one {
        font-size: 36px;
        margin-right: 12px;
      }
      .two {
        font-size: 24px;
        color: #aaa;
        text-decoration: line-through;
        position: relative;
        top: 2px;
      }
    }
    .rt {
      display: flex;
      font-size: 24px;
      color: #aaa;
    }
  }
}

.params {
  height: 88px;
  line-height: 88px;
  display: flex;
  border-bottom: 1px solid #e7e7e7;
  justify-content: space-between;
  padding: 0 30px;
  font-size: 30px;
}

.myTab {
  border-top: 20px solid #efeff4;
}
</style>